﻿<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="../knockout-3.0.0.js"></script>
</head>
<body>   
    <div>At the tone, the curent time is: <span data-bind="text: time"></span></div>
    <button data-bind="click: updateTime">Update!</button>

    <script>
        var model = {
            time: ko.observable(),
            updateTime: function () {
                this.time(new Date());
            }
        };
        ko.applyBindings(model);
    </script>
</body>
</html>